<?php

use Illuminate\Database\Seeder;

class UserInterPushTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return string
     */
    public function run()
    {
        $users = \App\User::whereIn ("type",[3,4])
            ->where("phone", "<>","")
            ->get();
        foreach ($users as $user){
            $user->interPushInfo()->save(new \App\Model\UserInterPushInfo());
            echo $user->id;
        }
        return "更新成功！";
    }
}
